package com.atguigu.springbootmybatisplusrabbitmq.mapper;

import com.atguigu.springbootmybatisplusrabbitmq.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    //自定义复杂sql
    List<User> selectAllByName(String name);
    /**
     * 查询：根据年龄查询用户列表，分页显示
     */
    IPage<User> selectPageVo(Page<?> page,Integer age);
}
